package com.weir.weirdb.user.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 系统用户
 * </p>
 *
 * @author weir
 * @since 2018-11-27
 */
public class SysUser extends Model<SysUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    private Long id;

    /**
     * 真名
     */
    private String realname;

    /**
     * 账号
     */
    private String username;

    /**
     * 头像
     */
    private String portrait;

    /**
     * 密码
     */
    private String password;

    /**
     * 密码盐
     */
    private String salt;

    /**
     * 邮件
     */
    private String email;

    /**
     * 电话2
     */
    private String phone2;

    /**
     * 电话
     */
    private String phone;

    /**
     * 用户状态
     */
    private Boolean status;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 性别
     */
    private Boolean sex;

    /**
     * 生日
     */
    private LocalDate birthday;

    /**
     * 岗位ID
     */
    private Integer dutyId;

    /**
     * 微信帐号
     */
    private String weixin;

    /**
     * 登陆状态
     */
    private Boolean isActive;

    /**
     * 在线状态
     */
    private Boolean isOnline;

    /**
     * 登陆错误次数
     */
    private Integer errorMore;

    /**
     * 最后登录时间
     */
    private LocalDateTime loginTime;

    /**
     * 所属辖区导航ID
     */
    private Integer regionId;

    /**
     * 所属部门ID
     */
    private Integer orgId;

    /**
     * 是否超级管理员
     */
    private Boolean isAdmin;

    /**
     * 是否是开发者
     */
    private Boolean isDev;

    /**
     * 是否锁定
     */
    private Boolean isLock;

    /**
     * 国家代号ID
     */
    private Integer countryId;

    /**
     * 省ID
     */
    private Integer provId;

    /**
     * 市ID
     */
    private Integer cityId;

    /**
     * 区ID
     */
    private Integer areaId;

    /**
     * 街道ID
     */
    private Integer streetId;

    /**
     * qq
     */
    private String qq;

    /**
     * 门牌地址
     */
    private String address;

    /**
     * 省市街道名  将省市直至街道组合起来
     */
    private String bigAddress;

    /**
     * 支付宝
     */
    private String alipay;

    /**
     * 身份证号
     */
    private String cardid;

    /**
     * 银行卡
     */
    private String bankcard;

    /**
     * 银行名称
     */
    private String bankname;

    /**
     * 用户类型 
            1普通用户
            2承运商
            3司机
            4联盟企业
            10机关用户
            20	业务员
            21	货主
            22	仓管员
            30	网点专职业务
            10000超级管理员拥有所有权限
     */
    private Integer userType;

    /**
     * 语言类型  在ST_CFG_CONFIG  中注册LANG的为系统语言
     */
    private Integer lang;

    /**
     * 学历
     */
    private Integer education;

    /**
     * 职业
     */
    private Integer career;

    /**
     * 缺省交易网点
     */
    private Integer defaultOrgId;

    /**
     * 技能等级    值列表中取
     */
    private Integer skillLevel;

    /**
     * 职称            值列表中取
     */
    private Integer empTitle;

    /**
     * 工号
     */
    private String empNo;

    /**
     * 创建者
     */
    private Long createUserId;

    /**
     * 创建者账号
     */
    private String createUsername;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改者
     */
    private Long updateUserId;

    /**
     * 修改者账号
     */
    private String updateUsername;

    /**
     * 更新日期
     */
    private LocalDateTime updateTime;

    /**
     * 链主代码
     */
    private String clientCode;

    /**
     * 维护交易代码
     */
    private String businessCode;

    /**
     * 经度
     */
    private BigDecimal longitude;

    /**
     * 纬度
     */
    private BigDecimal latitude;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPortrait() {
        return portrait;
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone2() {
        return phone2;
    }

    public void setPhone2(String phone2) {
        this.phone2 = phone2;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Boolean getSex() {
        return sex;
    }

    public void setSex(Boolean sex) {
        this.sex = sex;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public Integer getDutyId() {
        return dutyId;
    }

    public void setDutyId(Integer dutyId) {
        this.dutyId = dutyId;
    }

    public String getWeixin() {
        return weixin;
    }

    public void setWeixin(String weixin) {
        this.weixin = weixin;
    }

    public Boolean getActive() {
        return isActive;
    }

    public void setActive(Boolean isActive) {
        this.isActive = isActive;
    }

    public Boolean getOnline() {
        return isOnline;
    }

    public void setOnline(Boolean isOnline) {
        this.isOnline = isOnline;
    }

    public Integer getErrorMore() {
        return errorMore;
    }

    public void setErrorMore(Integer errorMore) {
        this.errorMore = errorMore;
    }

    public LocalDateTime getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(LocalDateTime loginTime) {
        this.loginTime = loginTime;
    }

    public Integer getRegionId() {
        return regionId;
    }

    public void setRegionId(Integer regionId) {
        this.regionId = regionId;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public Boolean getAdmin() {
        return isAdmin;
    }

    public void setAdmin(Boolean isAdmin) {
        this.isAdmin = isAdmin;
    }

    public Boolean getDev() {
        return isDev;
    }

    public void setDev(Boolean isDev) {
        this.isDev = isDev;
    }

    public Boolean getLock() {
        return isLock;
    }

    public void setLock(Boolean isLock) {
        this.isLock = isLock;
    }

    public Integer getCountryId() {
        return countryId;
    }

    public void setCountryId(Integer countryId) {
        this.countryId = countryId;
    }

    public Integer getProvId() {
        return provId;
    }

    public void setProvId(Integer provId) {
        this.provId = provId;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    public Integer getStreetId() {
        return streetId;
    }

    public void setStreetId(Integer streetId) {
        this.streetId = streetId;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBigAddress() {
        return bigAddress;
    }

    public void setBigAddress(String bigAddress) {
        this.bigAddress = bigAddress;
    }

    public String getAlipay() {
        return alipay;
    }

    public void setAlipay(String alipay) {
        this.alipay = alipay;
    }

    public String getCardid() {
        return cardid;
    }

    public void setCardid(String cardid) {
        this.cardid = cardid;
    }

    public String getBankcard() {
        return bankcard;
    }

    public void setBankcard(String bankcard) {
        this.bankcard = bankcard;
    }

    public String getBankname() {
        return bankname;
    }

    public void setBankname(String bankname) {
        this.bankname = bankname;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public Integer getLang() {
        return lang;
    }

    public void setLang(Integer lang) {
        this.lang = lang;
    }

    public Integer getEducation() {
        return education;
    }

    public void setEducation(Integer education) {
        this.education = education;
    }

    public Integer getCareer() {
        return career;
    }

    public void setCareer(Integer career) {
        this.career = career;
    }

    public Integer getDefaultOrgId() {
        return defaultOrgId;
    }

    public void setDefaultOrgId(Integer defaultOrgId) {
        this.defaultOrgId = defaultOrgId;
    }

    public Integer getSkillLevel() {
        return skillLevel;
    }

    public void setSkillLevel(Integer skillLevel) {
        this.skillLevel = skillLevel;
    }

    public Integer getEmpTitle() {
        return empTitle;
    }

    public void setEmpTitle(Integer empTitle) {
        this.empTitle = empTitle;
    }

    public String getEmpNo() {
        return empNo;
    }

    public void setEmpNo(String empNo) {
        this.empNo = empNo;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public String getCreateUsername() {
        return createUsername;
    }

    public void setCreateUsername(String createUsername) {
        this.createUsername = createUsername;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Long updateUserId) {
        this.updateUserId = updateUserId;
    }

    public String getUpdateUsername() {
        return updateUsername;
    }

    public void setUpdateUsername(String updateUsername) {
        this.updateUsername = updateUsername;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getClientCode() {
        return clientCode;
    }

    public void setClientCode(String clientCode) {
        this.clientCode = clientCode;
    }

    public String getBusinessCode() {
        return businessCode;
    }

    public void setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
    }

    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysUser{" +
        "id=" + id +
        ", realname=" + realname +
        ", username=" + username +
        ", portrait=" + portrait +
        ", password=" + password +
        ", salt=" + salt +
        ", email=" + email +
        ", phone2=" + phone2 +
        ", phone=" + phone +
        ", status=" + status +
        ", remarks=" + remarks +
        ", sex=" + sex +
        ", birthday=" + birthday +
        ", dutyId=" + dutyId +
        ", weixin=" + weixin +
        ", isActive=" + isActive +
        ", isOnline=" + isOnline +
        ", errorMore=" + errorMore +
        ", loginTime=" + loginTime +
        ", regionId=" + regionId +
        ", orgId=" + orgId +
        ", isAdmin=" + isAdmin +
        ", isDev=" + isDev +
        ", isLock=" + isLock +
        ", countryId=" + countryId +
        ", provId=" + provId +
        ", cityId=" + cityId +
        ", areaId=" + areaId +
        ", streetId=" + streetId +
        ", qq=" + qq +
        ", address=" + address +
        ", bigAddress=" + bigAddress +
        ", alipay=" + alipay +
        ", cardid=" + cardid +
        ", bankcard=" + bankcard +
        ", bankname=" + bankname +
        ", userType=" + userType +
        ", lang=" + lang +
        ", education=" + education +
        ", career=" + career +
        ", defaultOrgId=" + defaultOrgId +
        ", skillLevel=" + skillLevel +
        ", empTitle=" + empTitle +
        ", empNo=" + empNo +
        ", createUserId=" + createUserId +
        ", createUsername=" + createUsername +
        ", createTime=" + createTime +
        ", updateUserId=" + updateUserId +
        ", updateUsername=" + updateUsername +
        ", updateTime=" + updateTime +
        ", clientCode=" + clientCode +
        ", businessCode=" + businessCode +
        ", longitude=" + longitude +
        ", latitude=" + latitude +
        "}";
    }
}
